package com.weijian.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 订单详情表
 */
@Data
@Schema(description = "订单详情表")
@TableName(value = "order_detail", autoResultMap = true)
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单详情id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 菜品id
     */
    private Long itemId;

    /**
     * 套餐id
     */
    private Long setMealId;


    /**
     * 购买数量
     */
    private Integer num;

    /**
     * 标题
     */
    private String name;

    /**
     * 价格,单位：分
     */
    private Integer price;

    /**
     * 商品图片
     */
    private String image;

}
